cmake_minimum_required(VERSION 3.6)
project(Warpper)
add_library(${PROJECT_NAME} STATIC
        NetWorkWarpper.cpp
        #        ManagerFactory.cpp
        ListernerManager.cpp
        BusinessManager.cpp
        ContextManager.cpp
        DaoManager.cpp
        )
include_directories(.)
add_subdirectory(Mod)
add_subdirectory(Listers)
add_subdirectory(Context)
add_subdirectory(NetWorkModule)
add_subdirectory(Dao)
add_subdirectory(Tool)
target_link_libraries(${PROJECT_NAME} Mod Listers Context NetWorkModule Dao SQLiteCpp common_tool GeeJoan_MD5 protocol handy_s)

add_executable(btest test.cpp)
target_link_libraries(btest ${PROJECT_NAME})

add_executable(test2 ../tests/test2.cpp)
target_link_libraries(test2 protocol)